clear all
set more off 

cd "C:\Dropbox\Average_target_survey\replication_folder\dofiles"
quiet do load_rreg2

cd "C:\Dropbox\Average_target_survey\replication_folder\workfiles"
use step001, clear


	
* hearing news about the Fed	
gen heard_news=(QJH3==2)
*** hearing news & hearing about new strategies
gen heard_news_and_strategy=(QJH3==2 & QJH7_4==1)
*** condition on picking IT as the policy regime
gen IT_pick=(QJH10_2==1 | QJH10_1==1)
*** pick the right Fed target: maximum employment AND stable price
gen target=(QJH9_2==1 & QJH9_5==1)


foreach var in heard_news heard_news_and_strategy IT_pick target {
	
	reg `var' age male N_children married single nonwhite hispanic i.Q48  i.Q49   party_democrat party_republican party_other [aw=weight], robust
	if "`var'"=="heard_news" {
	    outreg2 using "C:\Dropbox\Average_target_survey\replication_folder\outregs\Appendix_Table02.dta", replace dta dec(3) ctitle("`var'")	
	} 
	else {
	    outreg2 using "C:\Dropbox\Average_target_survey\replication_folder\outregs\Appendix_Table02.dta", append dta dec(3) ctitle("`var'")	
 
	}

}

